package com.nativetalk.dao;

import com.nativetalk.bean.message.TdNtMessageInsert;
import com.nativetalk.bean.message.TdNtMessageList;

import java.util.List;
import java.util.Map;

/**
 * Created by lizhun on 16/1/11.
 */
@MyBatisRepository
public interface TdNtMessageDao {
    /**
     * @Purpose  添加信息
     * @version  3.0
     * @author   lizhun
     * @param    tdNtMessage
     * @return   void
     */
    public void insertTdNtMessage(TdNtMessageInsert tdNtMessage);
    /**
     * @Purpose  更新时间和未读消息数量
     * @version  3.0
     * @author   lizhun
     * @param    tdNtMessage
     * @return   void
     */
    public void updateTdNtMessage(TdNtMessageInsert tdNtMessage);
    /**
     * @Purpose  查找信息是否存在
     * @version  3.0
     * @author   lizhun
     * @param    tdNtMessage
     * @return   TdNtMessageInsert
     */
    public TdNtMessageInsert findTdNtMessageInsert(TdNtMessageInsert tdNtMessage);
    /**
     * @Purpose  获取用户未读消息总数
     * @version  3.0
     * @author   lizhun
     * @param    tdNtMessage
     * @return   int
     */
    public int findMessageSize(TdNtMessageInsert tdNtMessage);
    /**
     * @Purpose  获取用户未读消息列表
     * @version  3.0
     * @author   lizhun
     * @param    map
     * @return   List<TdNtMessageList>
     */
    public List<TdNtMessageList> findMessageList(Map<String, Object> map);
    /**
     * @Purpose  获取用户未读消息列表
     * @version  3.0
     * @author   lizhun
     * @param    map
     * @return   int
     */
    public int findMessageListSize(Map<String, Object> map);
}
